package com.rd.student.dashuju.sunwenzhuo.Test1.fighting;

import java.util.Random;

public class Test2 {
    public static void main(String[] args) {

        Random random =new Random();
        //男生长相数组
        String[] boyfaces = {"风流俊雅", "气宇轩昂", "相貌英俊", "五官端正", "相貌平平", "一塌糊涂", "面目狰狞"};
        //女生长相数组
        String[] girlfaces = {"美奂绝伦", "沉鱼落雁", "婷婷玉立", "身材娇好", "相貌平平", "相貌简陋", "惨不忍睹"};
        int l1 = random.nextInt(6);
        int l2 = random.nextInt(6);

        FightingGame2 p1 =new FightingGame2();
        FightingGame2 p2 =new FightingGame2();

        p1.setName("乔峰");
        p2.setName("鸠摩智");
        p1.setBlood(100);
        p2.setBlood(100);
        p1.setSex("男");
        p2.setSex("男");

        System.out.println("姓名为："+p1.getName()+" 血量为："+p1.getBlood()+" 性别为"+p1.getSex()+" 长相为："+boyfaces[l1]);
        System.out.println("姓名为："+p2.getName()+" 血量为："+p2.getBlood()+" 性别为"+p2.getSex()+" 长相为："+boyfaces[l2]);

        FightingGame2.fight(100,100,"乔峰","鸠摩智");



    }
}
